<template>
  <div>
    <div class="header">
      <i class="iconfont icon-zuo" @click="fanhui()"></i>
      <div class="header2">
        <p @click="tuj()">推荐</p>
        <p @click="guanz()">关注</p>
        <p @click="fens()">粉丝</p>
      </div>
      <i class="iconfont icon-016fangdajing"></i>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  methods: {
    tuj() {
      this.$router.push("/ls");
    },
    fanhui() {
      this.$router.go(-1);
    },
    guanz() {
      this.$router.push("/gz");
    },
    fens() {
      this.$router.push("/fs");
    },
  },
};
</script>

<style scoped>
.header {
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  height: 1.07rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.35rem;
  font-weight: 600;
}
.header2 {
  width: 3.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header > .icon-zuo {
  font-size: 0.42rem;
  color: #272727;
}
.header > .icon-016fangdajing {
  font-size: 0.42rem;
  color: #272727;
}
p {
  color: #5c5c5c;
}
p:nth-of-type(1) {
  color: #363636;
}
</style>